package com.common.www.utils;

import com.alibaba.fastjson.JSON;
import com.common.www.bean.entity.Sort;

import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;

public class SortUtils {
    public static String addSort(Sort... sorts) {
        List<Sort> list = new ArrayList<>(Arrays.asList(sorts));
        return JSON.toJSONString(list);
    }
}
